AstroWeb procedures
Periodic updates at La Plata are done with the following suite of
procedures:
-
update_astroweb.pl
-
Copies the master database in HTML format, and uses the procedures described
below to sort the records and split them into separate category pages.
-
dtsort.pl
-
The primary purpose of this program is to sort resource records.
Sort options include 'topzone' (sort by fully-qualified-domain-name, with
fields reversed into 'JANET' order), 'protoname'(sort key concatenates the
protocol name with the resource namestring) and 'name' (sort on
resource namestrings).
dtsort.pl executes a series of string replacement rules which put the text
into a canonical form (e.g., the HTML variable 'href' is changed to 'HREF').
In addition, dtsort.pl recognizes when successive records are identical, and
deletes the redundant copies.
It also recognizes when records have the same URL
but different text; in this case, the program merges the two records
and inserts a comment about the similarity.
This program uses the auxiliary file
country-codes
-
dtsplit.pl
-
This program uses configuration rules given in its BEGIN section to
split a file of resource records into separate pages by using the
CATEGORY codes.
-
dtnodd.pl
-
This program strips the "DD" fields from resource records so that the
record will be rendered as only one line (just the URL and the short name
string).
The procedures have been translated into Perl with minor modifications
from the original
AWK implementation.
spaoli@fcaglp.fcaglp.unlp.edu.ar
Updated: 16 Mar 1995.